package com.yyplatform.admin.platform.role.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.yyplatform.admin.platform.role.model.entity.SysUserPostEntity;

import java.util.List;

/**
 * Created on 2024-09-14
 */
public interface SysUserPostRepository extends JpaRepository<SysUserPostEntity, Long>,
        JpaSpecificationExecutor<SysUserPostEntity> {
    List<SysUserPostEntity> findByPostId(Long id);

    List<SysUserPostEntity> findByUserId(Long id);

}
